package com.dearbinge.data.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dearbinge.data.pojo.moneyDetail.MoneyDetail;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface MoneyDetailMapper {
    Integer insert(MoneyDetail moneyDetail);

    Integer update(MoneyDetail moneyDetail);

    Integer delete(Integer id);

    Integer count(@Param("userId") String userId,@Param("isDeleted") Integer isDeleted);

    List<MoneyDetail> getByPage(@Param("userId") String userId,@Param("isDeleted") Integer isDeleted, Page<MoneyDetail> page);
}
